home *** CD-ROM | disk | FTP | other *** search
-
- ▄▀█ ▄▀▀▀▀▀▀ ▄▀▄▀█ █▀▀▄
- ▄▀ █ █ ▄▀ █ █▄▄▄█
- █▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀ ▄▄▄█ ▀▄▄ ▄▀ █ █▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█
- d e l i v e r s ───────────────────────────────┐
- ┌─────────────────────────────────────────────────────────────────────────────┘
- │
- └[27/10/1993]
-
- This piece of code is a fully working asm source of an AdLib player. It
- can play .SAT files (from Surprise! prod. Adlib Tracker/Rick dangerous S!P),
- but can be changed to play other type of files.
- Made this little thingy all by myself in about 1.5 days, so don't complain
- about any bugs or that kind of stuff. Not all special effects are included
- (like porta up/down), but they will be in next versions.
- I hope you can use it in your own intro/demo. If you use it, please give
- credits to the coder (me, Lone Ranger/AcmE), and send me the product it's
- used in (see below for contacting info etc.)
-
- Here some info about the player. it can work in two modes: timer mode or
- polling mode. In timer mode the player does all the stuff (reprograms the
- timer int), and in polling mode you have to call the player 50 or 70 times
- a second, so YOU have to do all the timing stuff. This is how to use it:
-
- EXTRN SAT_player:FAR ; far call
-
- mov bx, 0 ; check for FM chip
- call SAT_player
- jc no_fm_chip_found ; give a warning or something like that
-
- mov bx, 1 ; reset FM chip
- call SAT_player
-
- mov ax, seg _MusicSeg ; segment of SAT file
- mov es, ax
- mov al, 0 ; 0 for TIMER mode, 1 for polling mode
- mov bx, 2
- Call SAT_player
-
- mov bx, 3 ; Start playing
- call SAT_player
-
- ; if you use TIMER mode, you can do your own stuff
- ; but when you use polling mode, you have to call the player 50 or 70 times
- ; a second, ie. during a vert retrace.
-
- mov bx, 4 ; poll player
- Call SAT_player
-
- ; and when your finished, just do:
-
- mov bx, 5
- call SAT_player
-
- This should get you started. While playing you have a few variables to play
- with (only read, DON'T EVER WRITE TO THEM (it will screw up the player)).
-
- SAT_Equalizer 36 bytes ; this is a nice 36-freq equalizer.
- ; every byte is one freq. (0-63)
- ; see SATplay.asm for how to use it
-
- SAT_SongPos 1 byte ; current song position
-
- SAT_PatternPos 1 word ; current position in pattern
- ; this is a real position so when
- ; you divide this by 5*9 (size of one
- ; row), you'll get the actual row.
-
- ───────────────────────────────────────────────────────────────────────────────
-
- If you have any suggestions, questions or problems with this AcmE (tm) product
- please contact us.
-
- Also we are always looking for talented people to join us, so if you would like
- to become part of AcmE (tm) contact us.
-
- _AcmE__________________________________________________________________________
-
- How to contact AcmE (tm) :
- -Workstation : Blue Steel bbs +31-(0)20-6403972
- 9600 bauds and 500 megs of true
- quality stuff. Your sysop : MadMan
-
- -Mail : Aap.AcmE
- Griend 12
- 1112 LD
- Diemen
- Holland
-
- -Electronic mail : CDN 94:410/217
- SBC 14:1000/107.1
-
- __________________________________________________________________________AcmE_
-